/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/*
package core.util;


/**
 *
 * @author vlm
 *
public class Collection {

    private Object array[] = new Object[30];//Object[30];
    private int index = 0;
    private int getIndex=-1;
    public void add(Object c){array[index]=c;
     index++;
    }


    public void rem(Object c){
     boolean arrange=false;
     for(int x=0;x<index;x++){
        
        if(array[x]==c){
            arrange=true;
        }

        if(arrange){
            array[x-1]=array[x];
        }
     }

    }//rem


    public Object get(Object c)  {
     
        for(int x=0;x<index;x++){

            if(array[x]==c){

                return array[x];

            }
        }
        
    return null;
    }

   public Object next(){this.getIndex++;
                        if(this.getIndex>this.array.length){this.getIndex=0;}
                        return this.array[getIndex];
                         }


   public int getSearchIndex(){return getIndex;}

}*/

